package com.fz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fz.entity.Complain;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 存储住户投诉信息 服务类
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
public interface ComplainService extends IService<Complain> {
    boolean check(Long id, String field, String value);

    Boolean reject(Long id, Integer status,Integer statu);

    Boolean pass(Long id, Integer status,Integer statu);

    List<Complain> search(String input);

    boolean del(Long id, Integer status);

    Page<Complain> getList(Long userId, Integer pageNo, Integer pageSize);

    Boolean add(Long userId, String type, String content);
    Page<Complain> showList(Integer pageNo, Integer pageSize);
    Page<Complain> search(String input, Integer pageNo, Integer pageSize);
}
